<?php

namespace app\admin\model;

use app\admin\model\Type;

class Store extends Base
{
    // 定义时间戳字段名
    protected $createTime = 'createDate';
    protected $updateTime = 'updateDate';
    protected $autoWriteTimestamp = 'datetime';

    /*public function getTypeIdAttr($typeId){
        if(!$typeId){
            return '';
        }

        $type = Type::where(['id' => $typeId])->value('typeName');

        return $type;
    }*/
}